<form action="/backend/user/change_password" method="post">
    <div class="form-row">
	<label for="old_password">旧密码</label>
	<input type="password" name="old_password"/>
    </div>
    <div class="form-row">
	<label for="password">新密码</label>
	<input type="password" name="password"/>
    </div>
    <div class="form-row">
	<label for="confirm_password">重复新密码</label>
	<input type="password" name="confirm_password"/>
    </div>
    
    <div class="form-button">
	<input type="submit" name="submit" value="提交"/>
    </div>
</form>

<script type="text/javascript">
    $(function(){
	$('form').submit(function(){
	    Z.ajax({
		url : $(this).attr('action'),
		type: $(this).attr('method'),
		data: $(this).serialize(),
		success : function(){
		    window.location.href = Z.url('/backend/auth/logout');
		}
	    });
	    return false;
	});
    });
    </script>